<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>登录-卷云户外</title>
<meta name="keywords" content="乐去户外下载，户外线路,中华户外网,户外网,户外活动,户外赛事,户外俱乐部,帐篷节,露营大会,驴友,驴友论坛" />
<meta name="description" content="我们为您提供最优质、最全面户外休闲旅行线路的预定与结算服务。" />
<link type="text/css" href="../css/login-regist/style.css" rel="stylesheet"></link>
<link type="text/css" href="../css/login-regist/ui-dialog.css" rel="stylesheet"></link>
<script type="text/javascript" src="../js/login-regist/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="../js/login-regist/placeholder.js"></script>
<script type="text/javascript" src="../js/login-regist/custominput.js"></script>
<script type="text/javascript" src="../js/login-regist/user.js"></script>
<script type="text/javascript" src="../js/login-regist/dialog-min.js"></script>
<script type="text/javascript" src="../js/login-regist/artdialog.js"></script>
<script type="text/javascript" src="../js/layer/layer.js"></script>
<script type="text/javascript">
	//获取url后的参数
	function GetQueryString(name){
	     var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
	     var r = window.location.search.substr(1).match(reg);
	     if(r!=null)return  unescape(r[2]); return null;
	}
	
	jQuery(document).ready(function(){
		var callbackurl = GetQueryString("callbackurl");
		jQuery("#callbackurl").val(callbackurl);
		
		/* var callbackurl = '${callbackurl}';
		if (callbackurl != null && callbackurl != "") {
			window.location.href = callbackurl;
		} */
		
      var exist_flag = '${exist_flag}';
      var authcode_flag = '${authcode_flag}';
      //判断验证码是否正确
          	if(authcode_flag!=null && authcode_flag == "true"){
          		layer.open({
				  title: '消息',
				  content: '验证码不对',
				  icon:0
				});  
          	}
          	//判断账号是否正确
           if(exist_flag!=null && exist_flag == "false"){
           	layer.open({
			  title: '消息',
			  content: '此用户不存在或密码错误',
			  icon:0
			});  
           }
        });
</script>
</head>
<body>
<div class="container">
            <a href="index.jsp" target="_blank" class="logo" style="margin-bottom: 30px">
              <img src="../images/Brand3.png" alt="" style="height: 70px;background-color: transparent;"><!-- logo -->
            </a>
    
   <div class="login_box">
       <form method="post" action="UserAction_login.action" id="login_form">
          <div class="login_list">
             <div class="title">登录</div>
             <ul>
                <li>
                    <input type="text" autocomplete="false" class="text text_yh" id="username" name="userName" value="" placeholder="手机/邮箱/用户名（非昵称）">
                </li>
                <li>
                    <input type="password" class="text text_yh" id="password" name="password" placeholder="密码">
                </li>
                <li>
                    <input type="text" class="text text_yzm" id="authcode" name="authcode" value="" placeholder="验证码">
                    <a href="javascript:void(0)" class="code_pic">
                        <img src="createImageAction.action" width="100px" height="40px" onclick="this.src='createImageAction.action?a='+ Math.random()" title="点击图片刷新验证码"/>
                    </a> 
                </li>
             </ul>
             <div class="auto">
                 <!-- <div class="custom-checkbox"><input type="checkbox" name="auto_login" id="auto_login" value="auto_login" checked="checked"><label for="auto_login" class="checked">自动登录</label></div>
                  -->
                 <span class="fr">
                     <!-- <a href="http://user.huway.com/user/resetpwd?callbackurl=http://www.huway.com" class="blue">忘记密码？</a> -->
                     <a href="regist.jsp?callbackurl=login.jsp" class="blue">注册</a> 
                 </span> 
             </div>
             <div class="clear"></div>
             <input type="hidden" name="callbackurl" id="callbackurl" value="">
             <input type="submit" onclick="return userLogin();" class="btn" value="登录">
          </div>
          
        </form>
   </div>
   <div class="footer">
         </div>
</div>


</body>
</html>
